<?php
$tdatagsp_item_details=array();
	$tdatagsp_item_details[".NumberOfChars"]=80; 
	$tdatagsp_item_details[".ShortName"]="gsp_item_details";
	$tdatagsp_item_details[".OwnerID"]="";
	$tdatagsp_item_details[".OriginalTable"]="gsp_item_details";


	
//	field labels
$fieldLabelsgsp_item_details = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsgsp_item_details["English"]=array();
	$fieldToolTipsgsp_item_details["English"]=array();
	$fieldLabelsgsp_item_details["English"]["id"] = "Id";
	$fieldToolTipsgsp_item_details["English"]["id"] = "";
	$fieldLabelsgsp_item_details["English"]["gsp_id"] = "Gsp";
	$fieldToolTipsgsp_item_details["English"]["gsp_id"] = "";
	$fieldLabelsgsp_item_details["English"]["item_no"] = "Item No";
	$fieldToolTipsgsp_item_details["English"]["item_no"] = "";
	$fieldLabelsgsp_item_details["English"]["marks_nos_packages"] = "Marks Nos Packages";
	$fieldToolTipsgsp_item_details["English"]["marks_nos_packages"] = "";
	$fieldLabelsgsp_item_details["English"]["description"] = "Description";
	$fieldToolTipsgsp_item_details["English"]["description"] = "";
	$fieldLabelsgsp_item_details["English"]["origin"] = "Origin";
	$fieldToolTipsgsp_item_details["English"]["origin"] = "";
	$fieldLabelsgsp_item_details["English"]["gross_weight"] = "Gross Weight";
	$fieldToolTipsgsp_item_details["English"]["gross_weight"] = "";
	$fieldLabelsgsp_item_details["English"]["nos_invoice_date"] = "Nos Invoice Date";
	$fieldToolTipsgsp_item_details["English"]["nos_invoice_date"] = "";
	if (count($fieldToolTipsgsp_item_details["English"])){
		$tdatagsp_item_details[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelsgsp_item_details["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipsgsp_item_details["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelsgsp_item_details["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipsgsp_item_details["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelsgsp_item_details["Chinese (Hong Kong S.A.R.)"]["gsp_id"] = "Gsp Id";
	$fieldToolTipsgsp_item_details["Chinese (Hong Kong S.A.R.)"]["gsp_id"] = "";
	$fieldLabelsgsp_item_details["Chinese (Hong Kong S.A.R.)"]["item_no"] = "Item No";
	$fieldToolTipsgsp_item_details["Chinese (Hong Kong S.A.R.)"]["item_no"] = "";
	$fieldLabelsgsp_item_details["Chinese (Hong Kong S.A.R.)"]["marks_nos_packages"] = "Marks Nos Packages";
	$fieldToolTipsgsp_item_details["Chinese (Hong Kong S.A.R.)"]["marks_nos_packages"] = "";
	$fieldLabelsgsp_item_details["Chinese (Hong Kong S.A.R.)"]["description"] = "Description";
	$fieldToolTipsgsp_item_details["Chinese (Hong Kong S.A.R.)"]["description"] = "";
	$fieldLabelsgsp_item_details["Chinese (Hong Kong S.A.R.)"]["origin"] = "Origin";
	$fieldToolTipsgsp_item_details["Chinese (Hong Kong S.A.R.)"]["origin"] = "";
	$fieldLabelsgsp_item_details["Chinese (Hong Kong S.A.R.)"]["gross_weight"] = "Gross Weight";
	$fieldToolTipsgsp_item_details["Chinese (Hong Kong S.A.R.)"]["gross_weight"] = "";
	$fieldLabelsgsp_item_details["Chinese (Hong Kong S.A.R.)"]["nos_invoice_date"] = "Nos Invoice Date";
	$fieldToolTipsgsp_item_details["Chinese (Hong Kong S.A.R.)"]["nos_invoice_date"] = "";
	if (count($fieldToolTipsgsp_item_details["Chinese (Hong Kong S.A.R.)"])){
		$tdatagsp_item_details[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelsgsp_item_details["Chinese (Taiwan)"]=array();
	$fieldToolTipsgsp_item_details["Chinese (Taiwan)"]=array();
	$fieldLabelsgsp_item_details["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipsgsp_item_details["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelsgsp_item_details["Chinese (Taiwan)"]["gsp_id"] = "Gsp Id";
	$fieldToolTipsgsp_item_details["Chinese (Taiwan)"]["gsp_id"] = "";
	$fieldLabelsgsp_item_details["Chinese (Taiwan)"]["item_no"] = "Item No";
	$fieldToolTipsgsp_item_details["Chinese (Taiwan)"]["item_no"] = "";
	$fieldLabelsgsp_item_details["Chinese (Taiwan)"]["marks_nos_packages"] = "Marks Nos Packages";
	$fieldToolTipsgsp_item_details["Chinese (Taiwan)"]["marks_nos_packages"] = "";
	$fieldLabelsgsp_item_details["Chinese (Taiwan)"]["description"] = "Description";
	$fieldToolTipsgsp_item_details["Chinese (Taiwan)"]["description"] = "";
	$fieldLabelsgsp_item_details["Chinese (Taiwan)"]["origin"] = "Origin";
	$fieldToolTipsgsp_item_details["Chinese (Taiwan)"]["origin"] = "";
	$fieldLabelsgsp_item_details["Chinese (Taiwan)"]["gross_weight"] = "Gross Weight";
	$fieldToolTipsgsp_item_details["Chinese (Taiwan)"]["gross_weight"] = "";
	$fieldLabelsgsp_item_details["Chinese (Taiwan)"]["nos_invoice_date"] = "Nos Invoice Date";
	$fieldToolTipsgsp_item_details["Chinese (Taiwan)"]["nos_invoice_date"] = "";
	if (count($fieldToolTipsgsp_item_details["Chinese (Taiwan)"])){
		$tdatagsp_item_details[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelsgsp_item_details["French"]=array();
	$fieldToolTipsgsp_item_details["French"]=array();
	$fieldLabelsgsp_item_details["French"]["id"] = "Id";
	$fieldToolTipsgsp_item_details["French"]["id"] = "";
	$fieldLabelsgsp_item_details["French"]["gsp_id"] = "Gsp Id";
	$fieldToolTipsgsp_item_details["French"]["gsp_id"] = "";
	$fieldLabelsgsp_item_details["French"]["item_no"] = "Item No";
	$fieldToolTipsgsp_item_details["French"]["item_no"] = "";
	$fieldLabelsgsp_item_details["French"]["marks_nos_packages"] = "Marks Nos Packages";
	$fieldToolTipsgsp_item_details["French"]["marks_nos_packages"] = "";
	$fieldLabelsgsp_item_details["French"]["description"] = "Description";
	$fieldToolTipsgsp_item_details["French"]["description"] = "";
	$fieldLabelsgsp_item_details["French"]["origin"] = "Origin";
	$fieldToolTipsgsp_item_details["French"]["origin"] = "";
	$fieldLabelsgsp_item_details["French"]["gross_weight"] = "Gross Weight";
	$fieldToolTipsgsp_item_details["French"]["gross_weight"] = "";
	$fieldLabelsgsp_item_details["French"]["nos_invoice_date"] = "Nos Invoice Date";
	$fieldToolTipsgsp_item_details["French"]["nos_invoice_date"] = "";
	if (count($fieldToolTipsgsp_item_details["French"])){
		$tdatagsp_item_details[".isUseToolTips"]=true;
	}
}


	
	$tdatagsp_item_details[".NCSearch"]=true;

	

$tdatagsp_item_details[".shortTableName"] = "gsp_item_details";
$tdatagsp_item_details[".nSecOptions"] = 0;
$tdatagsp_item_details[".recsPerRowList"] = 1;	
$tdatagsp_item_details[".tableGroupBy"] = "0";
$tdatagsp_item_details[".mainTableOwnerID"] = "";
$tdatagsp_item_details[".moveNext"] = 1;




$tdatagsp_item_details[".showAddInPopup"] = false;

$tdatagsp_item_details[".showEditInPopup"] = false;

$tdatagsp_item_details[".showViewInPopup"] = false;


$tdatagsp_item_details[".fieldsForRegister"] = array();

$tdatagsp_item_details[".listAjax"] = true;

	$tdatagsp_item_details[".audit"] = false;

	$tdatagsp_item_details[".locking"] = false;
	
$tdatagsp_item_details[".listIcons"] = true;
$tdatagsp_item_details[".edit"] = true;
$tdatagsp_item_details[".inlineEdit"] = true;
$tdatagsp_item_details[".view"] = true;

$tdatagsp_item_details[".exportTo"] = true;

$tdatagsp_item_details[".printFriendly"] = true;

$tdatagsp_item_details[".delete"] = true;

$tdatagsp_item_details[".showSimpleSearchOptions"] = true;

$tdatagsp_item_details[".showSearchPanel"] = true;


$tdatagsp_item_details[".isUseAjaxSuggest"] = true;

$tdatagsp_item_details[".rowHighlite"] = true;


// button handlers file names

$tdatagsp_item_details[".addPageEvents"] = false;

$tdatagsp_item_details[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatagsp_item_details[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatagsp_item_details[".isUseTimeForSearch"] = false;

$tdatagsp_item_details[".isUseiBox"] = false;



$tdatagsp_item_details[".isUseInlineAdd"] = true;

$tdatagsp_item_details[".isUseInlineEdit"] = true;
$tdatagsp_item_details[".isUseInlineJs"] = $tdatagsp_item_details[".isUseInlineAdd"] || $tdatagsp_item_details[".isUseInlineEdit"];

$tdatagsp_item_details[".allSearchFields"] = array();

$tdatagsp_item_details[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatagsp_item_details[".allSearchFields"]))
{
	$tdatagsp_item_details[".allSearchFields"][] = "id";	
}
$tdatagsp_item_details[".globSearchFields"][] = "gsp_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("gsp_id", $tdatagsp_item_details[".allSearchFields"]))
{
	$tdatagsp_item_details[".allSearchFields"][] = "gsp_id";	
}
$tdatagsp_item_details[".globSearchFields"][] = "item_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("item_no", $tdatagsp_item_details[".allSearchFields"]))
{
	$tdatagsp_item_details[".allSearchFields"][] = "item_no";	
}
$tdatagsp_item_details[".globSearchFields"][] = "marks_nos_packages";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("marks_nos_packages", $tdatagsp_item_details[".allSearchFields"]))
{
	$tdatagsp_item_details[".allSearchFields"][] = "marks_nos_packages";	
}
$tdatagsp_item_details[".globSearchFields"][] = "description";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("description", $tdatagsp_item_details[".allSearchFields"]))
{
	$tdatagsp_item_details[".allSearchFields"][] = "description";	
}
$tdatagsp_item_details[".globSearchFields"][] = "origin";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("origin", $tdatagsp_item_details[".allSearchFields"]))
{
	$tdatagsp_item_details[".allSearchFields"][] = "origin";	
}
$tdatagsp_item_details[".globSearchFields"][] = "gross_weight";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("gross_weight", $tdatagsp_item_details[".allSearchFields"]))
{
	$tdatagsp_item_details[".allSearchFields"][] = "gross_weight";	
}
$tdatagsp_item_details[".globSearchFields"][] = "nos_invoice_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("nos_invoice_date", $tdatagsp_item_details[".allSearchFields"]))
{
	$tdatagsp_item_details[".allSearchFields"][] = "nos_invoice_date";	
}


$tdatagsp_item_details[".googleLikeFields"][] = "id";
$tdatagsp_item_details[".googleLikeFields"][] = "gsp_id";
$tdatagsp_item_details[".googleLikeFields"][] = "item_no";
$tdatagsp_item_details[".googleLikeFields"][] = "marks_nos_packages";
$tdatagsp_item_details[".googleLikeFields"][] = "description";
$tdatagsp_item_details[".googleLikeFields"][] = "origin";
$tdatagsp_item_details[".googleLikeFields"][] = "gross_weight";
$tdatagsp_item_details[".googleLikeFields"][] = "nos_invoice_date";



$tdatagsp_item_details[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatagsp_item_details[".allSearchFields"])) 
{
	$tdatagsp_item_details[".allSearchFields"][] = "id";	
}
$tdatagsp_item_details[".advSearchFields"][] = "gsp_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("gsp_id", $tdatagsp_item_details[".allSearchFields"])) 
{
	$tdatagsp_item_details[".allSearchFields"][] = "gsp_id";	
}
$tdatagsp_item_details[".advSearchFields"][] = "item_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("item_no", $tdatagsp_item_details[".allSearchFields"])) 
{
	$tdatagsp_item_details[".allSearchFields"][] = "item_no";	
}
$tdatagsp_item_details[".advSearchFields"][] = "marks_nos_packages";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("marks_nos_packages", $tdatagsp_item_details[".allSearchFields"])) 
{
	$tdatagsp_item_details[".allSearchFields"][] = "marks_nos_packages";	
}
$tdatagsp_item_details[".advSearchFields"][] = "description";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("description", $tdatagsp_item_details[".allSearchFields"])) 
{
	$tdatagsp_item_details[".allSearchFields"][] = "description";	
}
$tdatagsp_item_details[".advSearchFields"][] = "origin";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("origin", $tdatagsp_item_details[".allSearchFields"])) 
{
	$tdatagsp_item_details[".allSearchFields"][] = "origin";	
}
$tdatagsp_item_details[".advSearchFields"][] = "gross_weight";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("gross_weight", $tdatagsp_item_details[".allSearchFields"])) 
{
	$tdatagsp_item_details[".allSearchFields"][] = "gross_weight";	
}
$tdatagsp_item_details[".advSearchFields"][] = "nos_invoice_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("nos_invoice_date", $tdatagsp_item_details[".allSearchFields"])) 
{
	$tdatagsp_item_details[".allSearchFields"][] = "nos_invoice_date";	
}

$tdatagsp_item_details[".isTableType"] = "list";


	

$tdatagsp_item_details[".isDisplayLoading"] = true;

$tdatagsp_item_details[".isResizeColumns"] = false;





$tdatagsp_item_details[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatagsp_item_details[".strOrderBy"] = $gstrOrderBy;
	
$tdatagsp_item_details[".orderindexes"] = array();

$tdatagsp_item_details[".sqlHead"] = "SELECT id,   gsp_id,   item_no,   marks_nos_packages,   description,   origin,   gross_weight,   nos_invoice_date";
$tdatagsp_item_details[".sqlFrom"] = "FROM gsp_item_details";
$tdatagsp_item_details[".sqlWhereExpr"] = "";
$tdatagsp_item_details[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatagsp_item_details[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatagsp_item_details[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatagsp_item_details[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "gsp_item_details";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_item_details["id"]=$fdata;
//	gsp_id
	$fdata = array();
	$fdata["strName"] = "gsp_id";
	$fdata["ownerTable"] = "gsp_item_details";
		$fdata["Label"]="Gsp"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "gsp_id";
	
		$fdata["FullName"]= "gsp_id";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			
		
		$fdata["bAddPage"]=true; 
	
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_item_details["gsp_id"]=$fdata;
//	item_no
	$fdata = array();
	$fdata["strName"] = "item_no";
	$fdata["ownerTable"] = "gsp_item_details";
		$fdata["Label"]="Item No"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "item_no";
	
		$fdata["FullName"]= "item_no";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_item_details["item_no"]=$fdata;
//	marks_nos_packages
	$fdata = array();
	$fdata["strName"] = "marks_nos_packages";
	$fdata["ownerTable"] = "gsp_item_details";
		$fdata["Label"]="Marks Nos Packages"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "marks_nos_packages";
	
		$fdata["FullName"]= "marks_nos_packages";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_item_details["marks_nos_packages"]=$fdata;
//	description
	$fdata = array();
	$fdata["strName"] = "description";
	$fdata["ownerTable"] = "gsp_item_details";
		$fdata["Label"]="Description"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "description";
	
		$fdata["FullName"]= "description";
	
		
		
		
		
		
				$fdata["Index"]= 5;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=100";
		$fdata["nRows"] = 100;
			$fdata["EditParams"].= " cols=200";
		$fdata["nCols"] = 200;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_item_details["description"]=$fdata;
//	origin
	$fdata = array();
	$fdata["strName"] = "origin";
	$fdata["ownerTable"] = "gsp_item_details";
		$fdata["Label"]="Origin"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "origin";
	
		$fdata["FullName"]= "origin";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_item_details["origin"]=$fdata;
//	gross_weight
	$fdata = array();
	$fdata["strName"] = "gross_weight";
	$fdata["ownerTable"] = "gsp_item_details";
		$fdata["Label"]="Gross Weight"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "gross_weight";
	
		$fdata["FullName"]= "gross_weight";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_item_details["gross_weight"]=$fdata;
//	nos_invoice_date
	$fdata = array();
	$fdata["strName"] = "nos_invoice_date";
	$fdata["ownerTable"] = "gsp_item_details";
		$fdata["Label"]="Nos Invoice Date"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "nos_invoice_date";
	
		$fdata["FullName"]= "nos_invoice_date";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_item_details["nos_invoice_date"]=$fdata;

	
$tables_data["gsp_item_details"]=&$tdatagsp_item_details;
$field_labels["gsp_item_details"] = &$fieldLabelsgsp_item_details;
$fieldToolTips["gsp_item_details"] = &$fieldToolTipsgsp_item_details;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["gsp_item_details"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["gsp_item_details"] = array();

$mIndex = 1-1;
			$strOriginalDetailsTable="gsp_commercial_details";
	$masterTablesData["gsp_item_details"][$mIndex] = array(
		  "mDataSourceTable"=>"gsp_commercial_details"
		, "mOriginalTable" => $strOriginalDetailsTable
		, "mShortTable" => "gsp_commercial_details"
		, "masterKeys" => array()
		, "detailKeys" => array()
		, "dispChildCount" => "1"
		, "hideChild" => "0"	
		, "dispInfo" => "1"								
		, "previewOnList" => 1
		, "previewOnAdd" => 1
		, "previewOnEdit" => 1
		, "previewOnView" => 1
	);	
		$masterTablesData["gsp_item_details"][$mIndex]["masterKeys"][]="id";
		$masterTablesData["gsp_item_details"][$mIndex]["detailKeys"][]="gsp_id";

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto585=array();
$proto585["m_strHead"] = "SELECT";
$proto585["m_strFieldList"] = "id,   gsp_id,   item_no,   marks_nos_packages,   description,   origin,   gross_weight,   nos_invoice_date";
$proto585["m_strFrom"] = "FROM gsp_item_details";
$proto585["m_strWhere"] = "";
$proto585["m_strOrderBy"] = "";
$proto585["m_strTail"] = "";
$proto586=array();
$proto586["m_sql"] = "";
$proto586["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto586["m_column"]=$obj;
$proto586["m_contained"] = array();
$proto586["m_strCase"] = "";
$proto586["m_havingmode"] = "0";
$proto586["m_inBrackets"] = "0";
$proto586["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto586);

$proto585["m_where"] = $obj;
$proto588=array();
$proto588["m_sql"] = "";
$proto588["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto588["m_column"]=$obj;
$proto588["m_contained"] = array();
$proto588["m_strCase"] = "";
$proto588["m_havingmode"] = "0";
$proto588["m_inBrackets"] = "0";
$proto588["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto588);

$proto585["m_having"] = $obj;
$proto585["m_fieldlist"] = array();
						$proto590=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "gsp_item_details"
));

$proto590["m_expr"]=$obj;
$proto590["m_alias"] = "";
$obj = new SQLFieldListItem($proto590);

$proto585["m_fieldlist"][]=$obj;
						$proto592=array();
			$obj = new SQLField(array(
	"m_strName" => "gsp_id",
	"m_strTable" => "gsp_item_details"
));

$proto592["m_expr"]=$obj;
$proto592["m_alias"] = "";
$obj = new SQLFieldListItem($proto592);

$proto585["m_fieldlist"][]=$obj;
						$proto594=array();
			$obj = new SQLField(array(
	"m_strName" => "item_no",
	"m_strTable" => "gsp_item_details"
));

$proto594["m_expr"]=$obj;
$proto594["m_alias"] = "";
$obj = new SQLFieldListItem($proto594);

$proto585["m_fieldlist"][]=$obj;
						$proto596=array();
			$obj = new SQLField(array(
	"m_strName" => "marks_nos_packages",
	"m_strTable" => "gsp_item_details"
));

$proto596["m_expr"]=$obj;
$proto596["m_alias"] = "";
$obj = new SQLFieldListItem($proto596);

$proto585["m_fieldlist"][]=$obj;
						$proto598=array();
			$obj = new SQLField(array(
	"m_strName" => "description",
	"m_strTable" => "gsp_item_details"
));

$proto598["m_expr"]=$obj;
$proto598["m_alias"] = "";
$obj = new SQLFieldListItem($proto598);

$proto585["m_fieldlist"][]=$obj;
						$proto600=array();
			$obj = new SQLField(array(
	"m_strName" => "origin",
	"m_strTable" => "gsp_item_details"
));

$proto600["m_expr"]=$obj;
$proto600["m_alias"] = "";
$obj = new SQLFieldListItem($proto600);

$proto585["m_fieldlist"][]=$obj;
						$proto602=array();
			$obj = new SQLField(array(
	"m_strName" => "gross_weight",
	"m_strTable" => "gsp_item_details"
));

$proto602["m_expr"]=$obj;
$proto602["m_alias"] = "";
$obj = new SQLFieldListItem($proto602);

$proto585["m_fieldlist"][]=$obj;
						$proto604=array();
			$obj = new SQLField(array(
	"m_strName" => "nos_invoice_date",
	"m_strTable" => "gsp_item_details"
));

$proto604["m_expr"]=$obj;
$proto604["m_alias"] = "";
$obj = new SQLFieldListItem($proto604);

$proto585["m_fieldlist"][]=$obj;
$proto585["m_fromlist"] = array();
												$proto606=array();
$proto606["m_link"] = "SQLL_MAIN";
			$proto607=array();
$proto607["m_strName"] = "gsp_item_details";
$proto607["m_columns"] = array();
$proto607["m_columns"][] = "id";
$proto607["m_columns"][] = "gsp_id";
$proto607["m_columns"][] = "item_no";
$proto607["m_columns"][] = "marks_nos_packages";
$proto607["m_columns"][] = "description";
$proto607["m_columns"][] = "origin";
$proto607["m_columns"][] = "gross_weight";
$proto607["m_columns"][] = "nos_invoice_date";
$obj = new SQLTable($proto607);

$proto606["m_table"] = $obj;
$proto606["m_alias"] = "";
$proto608=array();
$proto608["m_sql"] = "";
$proto608["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto608["m_column"]=$obj;
$proto608["m_contained"] = array();
$proto608["m_strCase"] = "";
$proto608["m_havingmode"] = "0";
$proto608["m_inBrackets"] = "0";
$proto608["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto608);

$proto606["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto606);

$proto585["m_fromlist"][]=$obj;
$proto585["m_groupby"] = array();
$proto585["m_orderby"] = array();
$obj = new SQLQuery($proto585);

$queryData_gsp_item_details = $obj;
$tdatagsp_item_details[".sqlquery"] = $queryData_gsp_item_details;

$tableEvents["gsp_item_details"] = new eventsBase;

?>
